home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Essential Home & Business Collection
/
The Essential Home & Business Collection.iso
/
27
/
3
/
5
/
HP22D5.ZIP
/
EXTERN
/
IO
/
WRITE.ASM
< prev
Wrap
Assembly Source File
|
1991-04-16
|
509b
|
40 lines
DOSSEG
.MODEL LARGE
.DATA
.CODE
; ---------------------------------------------------------------------------
; write(handle,buf,num_bytes);
; ---------------------------------------------------------------------------
public _write
_write proc far
push bp
mov bp,sp
push ds
mov ah,040h
mov bx,[bp+6]
lds dx,[bp+8]
mov cx,[bp+12]
int 21h
jnc end_write
mov ax,-1
end_write:
pop ds
pop bp
retf
_write endp
END